﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true"
    CodeBehind="wFrmMaterialesPorAsignar.aspx.cs" Inherits="Crosland.Automotriz.Web.Repuestos.wFrmMaterialesPorAsignar" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxHiddenField" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx1" %>


<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    
      <script type="text/javascript">
          function gridEditor_Init(s, e) {
              if (hf.Contains(s.cpHFKey))
                  s.SetValue(hf.Get(s.cpHFKey));
          }

          function gridEditor_ValueChanged(s, e) {
              hf.Set(s.cpHFKey, s.GetValue());
          }
    </script>
    
    
    
    <div class="main-header" style="width: 100%;">
        <div class="main-titulo">
            Materiales por Asignar</div>
    </div>
    <div class="content-form" style="width: 100%;">
        <asp:UpdatePanel runat="server">
            <ContentTemplate>
            
                <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="90%" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
                    GroupBoxCaptionOffsetY="-19px" HeaderText="" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                    View="GroupBox" ShowHeader="False">
                    <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                    <HeaderStyle>
                        <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                    </HeaderStyle>
                    <PanelCollection>
                        <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                        <table>
            
            
 <tr>
                                    <td>
                                        <dx:ASPxButton ID="btnGrabar" runat="server" 
                                            Text="Grabrar y Enviar a Maestro Material" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            AutoPostBack="False" OnClick="btnGrabar_Click" Width="300px">
                                            <Image Url="~/Images/save_16.gif">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                    <td align="justify">
                                        <dx:ASPxButton ID="btnCancelar" runat="server" Text="Salir" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            AutoPostBack="False" OnClick="btnCancelar_Click" Width="95px">
                                            <Image Url="~/Images/logout.png">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
            </table>
                            <table>
                                 <tr>
                                    <td>
                                        Grupo Artículos:
                                    </td>
                                    <td>
                                        <dx:ASPxComboBox ID="cboGrupoArticulo" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            IncrementalFilteringMode="Contains" CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            Height="30px" AutoResizeWithContainer="True" Width="200px">
                                            <Columns>
                                                <dx:ListBoxColumn Caption="Descripción" FieldName="DES_GRUPO_ARTICULO" Width="200px" />
                                                <dx:ListBoxColumn Caption="Código" FieldName="COD_GRUPO_ARTICULO" Width="80px" />
                                            </Columns>
                                            <ItemStyle Height="30px" />
                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <LoadingPanelStyle ImageSpacing="5px">
                                            </LoadingPanelStyle>
                                            <DropDownButton Width="20px">
                                            </DropDownButton>
                                            <ButtonStyle Width="13px">
                                            </ButtonStyle>
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxComboBox>
                                    </td>
                                    <td align="left">
                                        <dx:ASPxButton ID="btnAginarGrupoArticulos" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            Text="Asignar" Width="20px" OnClick="btnAginarGrupoArticulos_Click">
                                            <Image Url="~/Images/ok.png">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                    <td align="right">
                                        Sector: &nbsp;&nbsp;&nbsp;
                                    </td>
                                    <td>
                                        <dx:ASPxComboBox ID="cboSector" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Height="30px" Spacing="0" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                            Width="120px">
                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <LoadingPanelStyle ImageSpacing="5px">
                                            </LoadingPanelStyle>
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxComboBox>
                                    </td>
                                    <td>
                                        <dx:ASPxButton ID="btnAsginarSector" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" OnClick="btnAsginarSector_Click" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Asignar" 
                                            Width="50px">
                                            <Image Url="~/Images/ok.png">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Jerarquía</td>
                                    <td>
                                        <dx:ASPxTextBox ID="txtnomJerarquia" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Enabled="False" Height="30px" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="200px">
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td align="left">
                                        <dx:ASPxButton ID="btnBuscarJerarquia" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Height="30px" OnClick="btnBuscarJerarquia_Click" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="..." 
                                            Width="100px">
                                            <ClientSideEvents Click="function(s, e){PCJerarquia.Show();}" />
                                        </dx:ASPxButton>
                                    </td>
                                    <td align="left" valign="top">
                                        <dx:ASPxButton ID="btnAsignarSector" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" OnClick="btnAsignarSector_Click" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Asignar" 
                                            Width="110px">
                                            <Image Url="~/Images/ok.png">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                    <td>
                                        <dx:ASPxTextBox ID="txtcodJerarquia" runat="server" ClientVisible="False" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Enabled="False" Height="30px" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                            Width="120px">
                                            <Paddings PaddingLeft="5px" />
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td align="center">
                                        <dx:ASPxTextBox ID="txtidJerarquia" runat="server" ClientVisible="False" 
                                            Width="50px">
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                 
                                 <tr>
                                     <td>
                                         Nro.Ruedas:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                     <td>
                                         <dx:ASPxComboBox ID="cboRuedas" runat="server" AutoPostBack="True" 
                                             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                             CssPostfix="Office2010Blue" Height="30px" IncrementalFilteringMode="Contains" 
                                             OnSelectedIndexChanged="ObtenerMarca" Spacing="0" 
                                             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="200px">
                                             <Items>
                                                 <dx:ListEditItem Text="0R" Value="0R" />
                                                 <dx:ListEditItem Text="2R" Value="2R" />
                                                 <dx:ListEditItem Text="3R" Value="3R" />
                                                 <dx:ListEditItem Text="4R" Value="4R" />
                                                 <dx:ListEditItem Text="NN" Value="NN" />
                                             </Items>
                                             <ItemStyle Height="30px" />
                                             <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                             </LoadingPanelImage>
                                             <LoadingPanelStyle ImageSpacing="5px">
                                             </LoadingPanelStyle>
                                             <DropDownButton Width="20px">
                                             </DropDownButton>
                                             <ButtonStyle Width="13px">
                                             </ButtonStyle>
                                             <Paddings PaddingLeft="5px" />
                                         </dx:ASPxComboBox>
                                     </td>
                                     <td align="center">
                                         Marca:</td>
                                     <td align="left" valign="top">
                                         <dx:ASPxComboBox ID="cboMarca" runat="server" AutoPostBack="True" 
                                             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                             CssPostfix="Office2010Blue" Enabled="False" Height="30px" 
                                             IncrementalFilteringMode="Contains" OnSelectedIndexChanged="ObtenerModelo" 
                                             Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                             Width="110px">
                                             <ItemStyle Height="30px" />
                                             <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                             </LoadingPanelImage>
                                             <LoadingPanelStyle ImageSpacing="5px">
                                             </LoadingPanelStyle>
                                             <DropDownButton Width="20px">
                                             </DropDownButton>
                                             <ButtonStyle Width="13px">
                                             </ButtonStyle>
                                             <Paddings PaddingLeft="5px" />
                                         </dx:ASPxComboBox>
                                     </td>
                                     <td align="center">
                                         Modelo:</td>
                                     <td align="center">
                                         <dx:ASPxComboBox ID="cboModelo" runat="server" AutoPostBack="True" 
                                             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                             CssPostfix="Office2010Blue" Enabled="False" Height="30px" 
                                             OnSelectedIndexChanged="ObtenerIndBaja" Spacing="0" 
                                             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                             Width="120px">
                                             <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                             </LoadingPanelImage>
                                             <LoadingPanelStyle ImageSpacing="5px">
                                             </LoadingPanelStyle>
                                             <Paddings PaddingLeft="5px" />
                                         </dx:ASPxComboBox>
                                     </td>
                                     <td>
                                     
                                     
                                     
                                         <dx:ASPxButton ID="btnAsignarModelo" runat="server" 
                                             CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                             CssPostfix="Office2010Blue" OnClick="btnAsignarModelo_Click" 
                                             SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Asignar" 
                                             Width="50px">
                                             <Image Url="~/Images/ok.png">
                                             </Image>
                                         </dx:ASPxButton>
                                     
                                     
                                     
                                     </td>
                                 </tr>
                                 
                                 <tr>
                                     <td>
                                         &nbsp;</td>
                                     <td>
                                         &nbsp;</td>
                                     <td align="left">
                                         &nbsp;</td>
                                     <td align="left" valign="top">
                                         &nbsp;</td>
                                     <td>
                                         &nbsp;</td>
                                     <td align="center">
                                         <dx:ASPxLabel ID="lblAnulado" runat="server" ForeColor="#FF3300">
                                         </dx:ASPxLabel>
                                     </td>
                                     <td>
                                         &nbsp;</td>
                                 </tr>
                                 
                            </table>
                        </dx:PanelContent>
                    </PanelCollection>
                </dx:ASPxRoundPanel>
                <table style="width: 90%;">
                    <tr>
                        <td>
                            <dx:ASPxGridView ID="grbMaterialPorAsginar" runat="server" Width="100%" AutoGenerateColumns="False"
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                OnAfterPerformCallback="grbMaterialPorAsginar_AfterPerformCallback" 
                                KeyFieldName="COD_MATERIAL" ClientInstanceName="grbMaterialPorAsginar">
                                <Columns>
                                    <dx:GridViewCommandColumn Caption="#" ShowSelectCheckbox="True" VisibleIndex="0"
                                        Width="30px">
                                        <HeaderTemplate>
                                            <dx:ASPxCheckBox ID="SelectAllCheckBox" runat="server" ToolTip="Select/Unselect"
                                                ClientSideEvents-CheckedChanged="function(s, e) { grbMaterialPorAsginar.SelectAllRowsOnPage(s.GetChecked()); }" />
                                        </HeaderTemplate>
                                        <ClearFilterButton Visible="True">
                                        </ClearFilterButton>
                                        <HeaderStyle HorizontalAlign="Center" />
                                    </dx:GridViewCommandColumn>
                                    <dx:GridViewDataTextColumn Caption="Código" VisibleIndex="1" Width="120px" 
                                        FieldName="COD_MATERIAL">
                                        <DataItemTemplate>
                                            <dx:ASPxTextBox ID="ASPxTextBox1" runat="server"  Text='<%#Eval("COD_MATERIAL")%>  '
                                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="150px"
                                                MaxLength="30" oninit="ASPxTextBox1_Init" AutoPostBack="True" 
                                                ontextchanged="ASPxTextBox1_TextChanged"   >
                                                 <ClientSideEvents Init="gridEditor_Init" ValueChanged="gridEditor_ValueChanged" />
                                            </dx:ASPxTextBox>
                                        </DataItemTemplate>
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Descripción" FieldName="DES_MATERIAL_IMP" VisibleIndex="2"
                                        Width="250px">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="ID_GRUPO_ARTICULO" Visible="False" VisibleIndex="3">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="COD_GRUPO_ARTICULO" Visible="False" VisibleIndex="4">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Grupo Articulo" FieldName="DES_GRUPO_ARTICULO"
                                        VisibleIndex="5" Width="100px">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="ID_SECTOR" Visible="False" VisibleIndex="6">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="COD_SECTOR" Visible="False" VisibleIndex="7">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Sector" FieldName="DES_SECTOR" VisibleIndex="8"
                                        Width="150px">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="ID_JERARQUIA" Visible="False" VisibleIndex="9">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="COD_JERARQUIA" Visible="False" VisibleIndex="10">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Jerarquia" FieldName="DES_JERARQUIA" VisibleIndex="11"
                                        Width="150px">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="ID_MODELO" Visible="False" VisibleIndex="12">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn Caption="Modelo" FieldName="DES_MODELO" VisibleIndex="13"
                                        Width="100px">
                                    </dx:GridViewDataTextColumn>
                                    <dx:GridViewDataTextColumn FieldName="ID_MATERIAL" Visible="False" VisibleIndex="14">
                                    </dx:GridViewDataTextColumn>
                                </Columns>
                                <SettingsBehavior AllowFocusedRow="True" />
                                <SettingsPager Mode="ShowAllRecords">
                                </SettingsPager>
                                <Settings ShowVerticalScrollBar="True" ShowFilterRow="True" 
                                    VerticalScrollableHeight="330" />                            
                                <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                    <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                    </LoadingPanelOnStatusBar>
                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                    </LoadingPanel>
                                </Images>
                                <ImagesFilterControl>
                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                    </LoadingPanel>
                                </ImagesFilterControl>
                                <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                    </Header>
                                    <LoadingPanel ImageSpacing="5px">
                                    </LoadingPanel>
                                </Styles>
                                <StylesPager>
                                    <PageNumber ForeColor="#3E4846">
                                    </PageNumber>
                                    <Summary ForeColor="#1E395B">
                                    </Summary>
                                </StylesPager>
                                <StylesEditors ButtonEditCellSpacing="0">
                                    <ProgressBar Height="21px">
                                    </ProgressBar>
                                </StylesEditors>
                            </dx:ASPxGridView>

                <dx:ASPxHiddenField ID="hiddenField" runat="server" ClientInstanceName="hf">
</dx:ASPxHiddenField>



                        </td>
                    </tr>
                </table>
                <br />
                <dx:ASPxPopupControl ID="PCJerarquia" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" HeaderText="Seleccione una Jerarquia" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                    Width="500px" ClientInstanceName="PCJerarquia" Modal="True" PopupHorizontalAlign="WindowCenter"
                    PopupVerticalAlign="WindowCenter" EnableHotTrack="False">
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                        <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                            <table width="100%">
                                <tr>
                                    <td>
                                        <table width="100%">
                                            <tr>
                                                <td class="style2">
                                                    <asp:TextBox ID="txtBuscar" runat="server" Height="25px" Width="200px"></asp:TextBox>
                                                </td>
                                                <td>
                                                    <dx:ASPxButton ID="btnBuscar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Height="25px" OnClick="btnBuscar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Text="Buscar">
                                                        <Image Url="~/Images/search.png">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <dx:ASPxGridView ID="grdTD_JERARQUIA" runat="server" AutoGenerateColumns="False"
                                            ClientInstanceName="grdTD_JERARQUIA" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" KeyFieldName="ID_JERARQUIA" OnAfterPerformCallback="grdTD_JERARQUIA_AfterPerformCallback"
                                            OnPageIndexChanged="grdTD_JERARQUIA_PageIndexChanged" Width="100%">
                                            <Columns>
                                                <dx:GridViewDataTextColumn Caption="ID" FieldName="ID_JERARQUIA" ShowInCustomizationForm="True"
                                                    Visible="False" VisibleIndex="0">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Codigo" FieldName="COD_JERARQUIA" ShowInCustomizationForm="True"
                                                    VisibleIndex="1">
                                                </dx:GridViewDataTextColumn>
                                                <dx:GridViewDataTextColumn Caption="Descripcion" FieldName="DES_JERARQUIA" ShowInCustomizationForm="True"
                                                    VisibleIndex="2">
                                                </dx:GridViewDataTextColumn>
                                            </Columns>
                                            <SettingsBehavior AllowFocusedRow="True" />
                                            <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanelOnStatusBar>
                                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanel>
                                            </Images>
                                            <ImagesFilterControl>
                                                <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                </LoadingPanel>
                                            </ImagesFilterControl>
                                            <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                </Header>
                                                <LoadingPanel ImageSpacing="5px">
                                                </LoadingPanel>
                                            </Styles>
                                            <StylesPager>
                                                <PageNumber ForeColor="#3E4846">
                                                </PageNumber>
                                                <Summary ForeColor="#1E395B">
                                                </Summary>
                                            </StylesPager>
                                            <StylesEditors ButtonEditCellSpacing="0">
                                                <ProgressBar Height="21px">
                                                </ProgressBar>
                                            </StylesEditors>
                                        </dx:ASPxGridView>
                                    </td>
                                </tr>
                            </table>
                            <table width="100%">
                                <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                            <table width="100%">
                                <tr>
                                    <td align="right">
                                        <dx:ASPxButton ID="btnAceptarJerarquia" runat="server" Text="Aceptar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            Width="100px" OnClick="AgregarJerarquia" AutoPostBack="False">
                                            <ClientSideEvents Click="function(s, e) {PCJerarquia.Hide();}" />
                                            <Image Url="~/Images/ok.png">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                    <td align="right" width="105">
                                        <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Cancelar" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            Width="100px">
                                            <ClientSideEvents Click="function(s, e) {PCJerarquia.Hide();}" />
                                            <Image Url="~/Images/cancel.gif">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
                <br />
                <dx:ASPxPopupControl ID="popupmsj" runat="server" AllowDragging="True" ClientInstanceName="popupmsj"
                    CloseAction="None" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                    EnableViewState="False" HeaderText="Mensaje" Modal="True" PopupHorizontalAlign="WindowCenter"
                    PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                    Width="300px" EnableHotTrack="False">
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                    </LoadingPanelImage>
                    <HeaderStyle>
                        <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" PaddingTop="4px" />
                        <Paddings PaddingLeft="7px" />
                    </HeaderStyle>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <ContentCollection>
                        <dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" SupportsDisabledAttribute="True">
                            <br />
                            <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                                <PanelCollection>
                                    <dx:PanelContent ID="Panelpopup" runat="server">
                                        <table align="center">
                                            <tr>
                                                <td colspan="2">
                                                    <dx:ASPxLabel ID="lblmsj" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue">
                                                    </dx:ASPxLabel>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                        </table>
                                        <table align="center">
                                            <tr>
                                                <td align="center" style="width: 215px">
                                                    <dx:ASPxButton ID="ASPxButton2" runat="server" Text="Aceptar" AutoPostBack="False"
                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                        <ClientSideEvents Click="function(s, e) {popupmsj.Hide();}" />
                                                        <Image Url="~/Images/ok.png">
                                                        </Image>
                                                    </dx:ASPxButton>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:PanelContent>
                                </PanelCollection>
                            </dx:ASPxPanel>
                        </dx:PopupControlContentControl>
                    </ContentCollection>
                </dx:ASPxPopupControl>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
